Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rethinking boost #1408

Merged
merged 19 commits into from
Sep 19, 2024
Merged

rethinking boost #1408

merged 19 commits into from
Sep 19, 2024

Conversation

huumn
Copy link
Member

@huumn huumn commented Sep 14, 2024

closes #1351
closes #194

This is done. It can be improved but it's good enough imo.

Screenshot 2024-09-18 at 7 41 29 PM
Screenshot 2024-09-18 at 7 41 41 PM
Screenshot 2024-09-18 at 7 42 34 PM
Screenshot 2024-09-18 at 7 43 31 PM

The intent here is to:

  1. make job promotion use boost like normal items
  2. make item "promotion" possible using boost
    • highest boost in territory gets pinned to top
    • when viewing "home" highest boost in all followed territories gets pinned at top
  3. make adding boost not reliant on edits
    • if an item is our own, whether a comment or post, show the lightning bolt flipped horizontally which when pressed opens a modal to apply boost (this way they can work for comments too)

TODO

  • allow jobs to be deleted
  • expire boost after 30 days
  • allow items to be boosted beyond edit window
  • allow highest boosted item in territory to be pinned
  • unify zap/downzap/boost button components/styling
  • comment ranking for boost
  • make sure boost is excluded from top

EXTRA TODO

  • hint if boosted item is high enough to pin it or not
  • review performance and see if there's something better that can be done
  • squash all migrations for this into one

@huumn huumn marked this pull request as ready for review September 18, 2024 17:57
@huumn huumn merged commit 5f0494d into master Sep 19, 2024
6 checks passed
@huumn huumn deleted the boost branch September 19, 2024 18:13
Copy link
Member

@ekzyis ekzyis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, played around with it and found an issue with comment boosts.

I also think we can do better with the icon. Flipping it only helps to distinguish it from zaps. But wouldn't be an arrow up be a better symbol for boosting? For example using arrow-up-double-line:

2024-09-19-214902_346x49_scrot

It looks a bit like a rank insignia which can be associated with boosting something.

Comment on lines +192 to +194
if (!failedInvoice) {
throw new Error(`retryPaidAction - invoice not found or not in failed state ${actionType}`)
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see, this is related to #1381. Would be nice to include the invoice id in the error message. I also think mentioning the action type in the front makes more sense else it sounds like the action type is the failed state:

retryPaidAction ${actionType} - invoice ${invoiceId} not found or not in failed state

components/adv-post-form.js Show resolved Hide resolved
api/resolvers/item.js Show resolved Hide resolved
@huumn
Copy link
Member Author

huumn commented Sep 19, 2024

I also think we can do better with the icon. Flipping it only helps to distinguish it from zaps. But wouldn't be an arrow up be a better symbol for boosting?

If we assume people are looking to boost, I agree. Zooming out, if we assume people aren't looking to boost, my guess is it'd be kind of annoying to look at yet another icon imo.

@ekzyis
Copy link
Member

ekzyis commented Sep 19, 2024

Mhh, interesting reasoning. This isn't considered to be a different icon since it's not different enough?

Btw, I also wondered if you wanted to use upbolt.svg since you named the import UpBolt. But I guess the name is only for historical reasons since I tried out upbolt.svg and you might have decided that this is on the other hand different but not enough, lol

@huumn
Copy link
Member Author

huumn commented Sep 19, 2024

Yeah, I thought it looked similar enough. Maybe not according to 0xBitcoiner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants